<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title><?php echo $template['title'] ?></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<?php 
foreach ($template['css'] as $val){
	echo "<link rel='stylesheet' type='text/css' href='{$val}' />";
}
?>
</head>
<body>
	<div class="header_wrap">
		<div id="header" class="auto">
			<div class="logo">sifangku</div>
			<div class="nav">
				<a href="index.php" class="hover">首页</a>
			</div>
			<div class="serarch">
				<form>
					<input class="keyword" type="text" name="keyword" placeholder="搜索其实很简单" />
					<input class="submit" type="submit" name="submit" value="" />
				</form>
			</div>
			<div class="login">
                <?php
                if(is_login($link)){
                    echo "
                        <span style='color: #ffffff'>欢迎：</span><a style='font-size: 16px'>{$_COOKIE['sfk']['name']}</a>
                        <span style='color: #ffffff'>| </span><a href='logout.php'> 退出 </a>";
                } else {
                    echo '<a href="login.php">登录</a>&nbsp;
                <a href="register.php">注册</a>';
                }
                ?>

			</div>
		</div>
	</div>
	<div style="margin-top:55px;"></div>
